package com.tinygone.kt

import kotlin.text.*

const val PI = 3.14
var x = 1
fun sum(a: Int, b: Int): Int {
    return a + b
}

fun sumb(a: Int, b: Int) {
    println("$a + $b = ${a + b}")
}

fun main(args: Array<String>) {
    println("hello world")
    sumb(3, 5)

    // 只能赋值一次的val
    val a = 3
    val b: Int = 3
    println("a = $a, b = $b")
    // 可重复赋值的var
    var c = 5
    c = a + b
    c = sum(a, b)

}